package com.wwdx.wechat.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * 微信第三方应用支付配置
 * @author liguoliang
 */
@Configuration
public class WxAppPayConfig extends BaseWxPayConfig {

    @Value("#{constantProperties['app_appId']}")
    private String appId;

    @Value("#{constantProperties['app_mchId']}")
    private String mchId;

    @Value("#{constantProperties['app_mchKey']}")
    private String mchKey;

    @Value("#{constantProperties['app_subAppId']}")
    private String subAppId;

    @Value("#{constantProperties['app_subMchId']}")
    private String subMchId;

    @Value("#{constantProperties['app_keyPath']}")
    private String keyPath;

    @Override
    public String getAppId() {
        return this.appId;
    }
    @Override
    public String getMchId() {
        return this.mchId;
    }
    @Override
    public String getMchKey() {
        return this.mchKey;
    }
}